package com.kitchen.ui.controls.account
{
	import com.kitchen.AbstractIcon;
	
	import flash.display.BitmapData;
	import flash.geom.Point;
	import flash.geom.Rectangle;

	internal class YellowNumberIcon extends AbstractIcon
	{
		private static var bitdata:BitmapData = null;
		
		public function YellowNumberIcon(bitmapData:BitmapData)
		{
			super(bitmapData);
		}
		
		override protected function cutRec(bitmapData:BitmapData):BitmapData{
			this.w = 180;
			this.h = 18;
			if(YellowNumberIcon.bitdata == null){
				var rec:Rectangle = new Rectangle(290, 496, this.w, this.h);
				var cbitdata:BitmapData = new BitmapData(this.w, this.h);
				cbitdata.copyPixels(bitmapData, rec, new Point());
				YellowNumberIcon.bitdata = cbitdata;
			}
			return YellowNumberIcon.bitdata;
		}
		
	}
}